package com.appspot.newsographer.server.jdo;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

/**
 * Class that handles POJOs by using the JDO api.
 * @author anuradha.uduwage
 *
 */
@PersistenceCapable
public class CountryEntityData {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	
	@Persistent
	private String name;
	
	public CountryEntityData(String name, String tag, int locationFreq, int tagFreq) {
		this.name = name;
	}
	
	/**
	 * @return the key
	 */
	public Key getKey() {
		return key;
	}	

	/**
	 * @return the location
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param location the location to set
	 */
	public void setName(String name) {
		this.name = name;
	}
}
